#ifndef EDITOREXITDIALOG_H
#define EDITOREXITDIALOG_H

#include <QDialog>
#include <QDialogButtonBox>
#include <QGridLayout>
#include <QLabel>
#include <QIcon>

class EditorExitDialog : public QDialog
{
    Q_OBJECT
public:

    /* Return codes */

    enum ExitCode {
        Cancel = 0x01,
        Save = 0x02,
        Discard = 0x04
    };

    EditorExitDialog(QString tabName, QWidget *parent = 0);
    ~EditorExitDialog();

    ExitCode exec();

private:
    QDialogButtonBox * exitDialogButtons_;
    QGridLayout * exitDialogLayout_;
    QLabel * exitDialogTopLabel_;
    QLabel * exitDialogBottomLabel_;
    QLabel * exitDialogIcon_;
    
signals:
    
private slots:
    void onClicked(QAbstractButton *button);
};

#endif // EDITOREXITDIALOG_H
